<?php

include("islogged.php");
include("include/connection.php");

if(isset($_GET["id"]))
{
	$query = "select * from video where id_vid = ". $_GET["id"];
	$result = mysql_query($query);
	$row = mysql_fetch_array($result,MYSQL_BOTH);
	extract($row);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="js/skin/minimalist.css">
<link rel="stylesheet" href="css/style.css" type="text/css" >
<link rel="icon" type="image/png" href="images/restapp.png" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/jquery-1.5.2.min.js" ></script>
<script type="text/javascript" src="js/flowplayer.min.js"></script>
</head>
<body>

	<div id='topmenu'>
		<div>
			<img style="float:left" src="images/logo.png" />
		</div>
		<ul>
				<li><a href="space.php">Home</a></li>
				<li><a href="signup.php">Signup</a></li>
				<li><a href="faq.php">FAQ</a></li>
				<li><a href="contact.php">Contact</a></li>
		</ul>
		<span id="money">1$</span>
		<img  src="images/home.png" onclick=" document.location.href='admin.php'" />
		<img  src="images/admprofile.png" onclick=" document.location.href='../editprofile.php'" />
		<img  src="images/disconnect.png" onclick=" document.location.href='disconnect.php'" />
	</div>

	<div id="limit">
<div id="user">
<h4><img src="images/loggedin.png" />User Account</h4>
<img id="image_profile" src="images/img_profile.png" />
<div id="info_user">
<h3>Hello Admin</h3>
<a href="">Modify your profile</a></div>
<!--#info_user--></div>
<!--#user-->
<div id="operations">
<ul>
	<h4>Categories</h4>
	<li><a href="profile.php?id=1"><img src="images/profile.png" />Profile</a>
	</li>
	<li><a href="videos.php"><img src="images/video.png" />Videos</a>
	</li>
	</li>
	<li><a href="members.php"><img src="images/teacher.png" />Members</a>
	</li>
</ul>
</div>

<div id="page">
<?php
if($row){
?>
			<h3><?php echo $title; ?></h3>
			
			<!--Approved video Example-->
			<div style="margin-left:73px;">
				<div class="flowplayer" data-swf="flowplayer.swf" data-ratio="0.4167">
				  <video>
				  <!--
				  <source type="video/webm" src="comer.webm">
				  <source type="video/mp4" src="comer.mp4">
				  <source type="video/ogv" src="comer.ogv">
				  -->
					 <source type="video/webm" src="<?php echo $url; ?>">
				  </video>
				</div>
				<fieldset>
				<legend>Action</legend>
					<form name="etat_video" action="action.php" method="post" style="margin:5px" >
					<?php
						if($vid_state==1){
					?>
					<span id="approve"><input type="radio" name="video_state" value="2" class="radio"><h6>Approve</h6></span><br />
					<span id="pending"><input type="radio" name="video_state" value="1" checked class="radio"><h6>Pending</h6></span><br />
					<?php
					}else{
					?>
					<span id="approve"><input type="radio" name="video_state" value="2" checked class="radio"><h6>Approve</h6></span><br />
					<span id="pending"><input type="radio" name="video_state" value="1" class="radio"><h6>Pending</h6></span><br />
					<?php
					}
					?>
					<span id="reject"><input type="radio" name="video_state" value="3" class="radio"><h6>Reject</h6></span><br />
					<input type="submit" value="validate" />
					</form>
				</fieldset>	
			</div>
				
<?php
} 
?>
</div>

<div id="copyrights"><span id="copytext">All rights reserved | Copyrights  2013 </span></div>

</div>



   		
</body>
</html>